package edu.isistan.metamodel;

public class Array extends Collection {
	
	public Array() {
	}
	
	public Array(String name, DataType dataType, String doc) {
		super(name, dataType, doc);
	}

	@Override
	public boolean isArray() {
		return true;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(getDataType().getType());
		sb.append("[]");
		return sb.toString();
	}

	@Override
	public String getPrettyPrintType() {
		return getDataType().getPrettyPrintType() + "[]";
	}
}
